package com.qfedu.dao.impl;

import com.qfedu.dao.TypeDao;
import com.qfedu.entity.Type;
import com.qfedu.utils.BaseDao;

import java.sql.SQLException;
import java.util.List;

public class TypeDaoImpl extends BaseDao implements TypeDao {
    @Override
    public List<Type> getAllType() throws SQLException {
        String sql = "select t_id as tid, t_name as tname, t_info as tInfo from type";
        List<Type> typeList = queryBeanList(sql, Type.class, null);
        return typeList;
    }
}
